package com.gugee.common.web.system.user.repository;

import com.gugee.common.web.system.user.model.UserToken;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserTokenRepository extends CrudRepository<UserToken,Long> {

    UserToken findUserTokenByUserId(Long userId);

    UserToken findUserTokenByToken(String token);

    UserToken findUserTokenByTokenAndAutoLoginAndIp(String token, Boolean autoLogin, String ip);
}
